/*
 * fileName: TimingTasks.java
 * author: ewangshi
 * createDate: 2013-8-7
 */
package com.ws.wsapp.chrome.entity;

import java.util.Date;

import com.ws.base.common.entity.EntitySupport;

/**
 * @author ewangshi
 */
public class TimingTasks extends EntitySupport {

    private static final long serialVersionUID = -6501889620572840552L;

    private Integer id;

    private String storeName;

    private String text;

    private Date date;

    private Integer status;

    public TimingTasks() {
    }

    public TimingTasks(String storeName, String text, String date, Integer status) {
        this.storeName = storeName;
        this.text = text;
        this.status = status;
        setDateForStr(date);
    }

    public TimingTasks(Integer id, String text, Date date, Integer status) {
        this.id = id;
        this.date = date;
        this.text = text;
        this.status = status;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getDate() {
        return date;
    }

    private void setDateForStr(String args) {
        long val = Long.parseLong(args);
        this.date = new Date(val);
    }
    
    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

}
